package com.xyz.tag.util;

import com.xyz.tag.html.XYHtmlConstants;


public class HtmlUtil {

  public static String drawNameAndValue( String name, String value ) {
    StringBuffer html = new StringBuffer();
    if ( !StringUtil.isEmpty( name ) ) {
      html.append( name );
      if ( !StringUtil.isEmpty( value ) ) {
        html.append( XYHtmlConstants.sign_eq ).append( XYHtmlConstants.sign_quot ).append( value )
            .append( XYHtmlConstants.sign_quot );
      }
    }
    return html.toString();
  }
}
